import request from '@/utils/request'

// 查询人机违规管控列表
export function listHumanMachineViolationControl(query) {
  return request({
    url: '/ys/humanMachineViolationControl/list',
    method: 'get',
    params: query
  })
}

// 查询人机违规管控详细
export function getHumanMachineViolationControl(id) {
  return request({
    url: '/ys/humanMachineViolationControl/' + id,
    method: 'get'
  })
}

// 新增人机违规管控
export function addHumanMachineViolationControl(data) {
  return request({
    url: '/ys/humanMachineViolationControl',
    method: 'post',
    data: data
  })
}

// 修改人机违规管控
export function updateHumanMachineViolationControl(data) {
  return request({
    url: '/ys/humanMachineViolationControl',
    method: 'put',
    data: data
  })
}

// 删除人机违规管控
export function delHumanMachineViolationControl(id) {
  return request({
    url: '/ys/humanMachineViolationControl/' + id,
    method: 'delete'
  })
}
